package com.hsq.ndmall.user.feign;

import com.hsq.ndmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.security.Principal;
import java.util.Map;

/**
 * @author 黄四清
 * @version 1.0.0
 * @ClassName Oauth2Fegin.java
 * @Description TODO 调用认证，返回 JWT token
 * @createTime 2021年08月26日 11:33:00
 */
@FeignClient(value = "oauth-service")
public interface Oauth2Feign {
    @RequestMapping(value = "/oauth/token", method = RequestMethod.POST)
    R postAccessToken( @RequestParam Map<String, String> parameters);
}
